﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Warnset.aspx.cs" Inherits="AiRiZu.User.Warnset" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
	爱日租—全球最时尚、最具先锋概念的房屋日租、短租服务网站！
</title>
<meta content="爱日租,日租,短租,租房,家庭公寓,自助公寓,家庭旅馆,旅游" name="keywords"/>
<meta content="爱日租是国内首家专注房屋短期租赁的信息发布和在线交易的网站，为房主和租户搭建起最值得信赖的沟通和交易平台" name="description"/>

<link rel="stylesheet" href="css/css.css" />


<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/pixie.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main"/>
<link rel="stylesheet" href="css/dashboard.css" />

</head>
<body>

	<div class="header">
		<a class="logo" title="爱日租" href="#"></a>
	  <div class="top_bar">
		<ul class="nav">
			
				<li>
				    <span class="SayHi"><%=Session["aliance"] != null? "嗨! " + Session["aliance"].ToString() : ""%>
				</li>


					<li><a href="#">用户中心</a>					</li>
					
  <li>
					<strong>
						<a href="#" class="message">
							<span id="unReadMessages"></span>
						</a>
					</strong>
					</li>
					
					<li class="rounded">
						<a href="#">
							收藏
							<span class="star" title="收藏" id="userFavorites"></span></a>					</li>
				

	  <li><a href="#">退出</a>				</li>
				
			
<li style="display:none"><span class="ChoLanguage selected">
					<a href="#">简体中文</a></span></li>
	            <li style="display:none"><span class="EngLanguage">
	            	<a href="#">English</a></span></li>

			
			
		</ul>
		<a href="../SendRoom.aspx" class="btn list_your_space">
			<span>发布房间</span>		</a>		</div>
		<p class="customer_hot_line"><span>400-696-6656</span><a href="#">媒体报道</a></p>
	</div>
	


<div id="command_center">


<ul id="nav">
	<li id="dashboardmenu"><a href="dashboard.aspx">我爱日租</a></li>
	<li id="inboxmenu"><a href="Index.aspx">收件箱</a></li>
	<li id="roomsmenu"><a href="MyRooms.aspx">我的房间</a></li>
	<li id="tripsmenu"><a href="Trips.aspx">出行计划</a></li>
	<li id="accountmenu"><a href="Warnset.aspx">账户信息</a></li>
	<li id="commentsmenu"><a href="Comments.aspx">评价推荐</a></li>
	<li id="vouchersmenu"><a href="Vouchersinvite.aspx">赢取租币</a></li>
</ul>

	






 <ul class="subnav">
    <li id="payout_pf_submenu"><a href="Payout_pf.aspx">收款方式</a></li>
    <li id="account_submenu" style="display:none"><a href="#">交易记录</a></li>    
    <li id="warnset_submenu"><a href="Warnset.aspx">邮件短信提醒</a></li>
    <li id="changepassword_submenu"><a href="ChangePassword.aspx">修改密码</a></li>
  </ul>







  <form action="/usersetting/doWarnset" method="post" >


  
  <div id="warnset" class="box">
    <div class="top"></div>
    <div class="middle">
      <h2>电子邮件</h2>
      <div class="middle_tixing">
        <div class="mail_content">
          <div class="mail_test">
              <div id="e_mail">
                <p>
                  <label>电子邮件</label>
                  <span class="address_left">
                  <input type="text"  class="input_b inputtxt_l" id="email" name="email" size="30" value="<%=Email %>" readonly="readonly"/>
                  </span></p>
                </div>
              <div class="clear"></div>
              <div id="mail_yy">
                <p>邮箱提醒：</p>
                <ul class="txt_tt">
                  <li>
                    <input type="checkbox"  <%=EmailWarns[0] ? "checked" : "" %> id="emailWarn1"  name="emailWarn1" class="box_small"/>
                    我有新的未读消息。
                  </li>
                  <li>
                    <input type="checkbox"  <%=EmailWarns[1] ? "checked" : "" %> id="emailWarn2"  name="emailWarn2" class="box_small"/>
                    我已经成功提交预定请求。
                  </li>
                  <li>
                    <input type="checkbox"  <%=EmailWarns[2] ? "checked" : "" %>  id="emailWarn3"  name="emailWarn3" class="box_small"/>
                    我有需要处理的房间预订。
                  </li>
                  <li>
                    <input type="checkbox"  <%=EmailWarns[3] ? "checked" : "" %>  id="emailWarn4" name="emailWarn4" class="box_small"/>
                    我的预定请求或房间预定状态发生变化。
                  </li>
                  <li>
                    <input type="checkbox"  <%=EmailWarns[4] ? "checked" : "" %>  id="emailWarn5"  name="emailWarn5" class="box_small"/>
                    租客入住前的提醒邮件。
                  </li>
                  <li>
                    <input type="checkbox"  <%=EmailWarns[5] ? "checked" : "" %>  id="emailWarn6"  name="emailWarn6" class="box_small"/>
                    我需要评价我的房东/租客。
                  </li>

                  <li>
                    <input type="checkbox"  <%=EmailWarns[6] ? "checked" : "" %>  id="emailWarn9"  name="emailWarn9" class="box_small"/>
                    爱日租准备进行非常特别的活动。
                  </li>
                  <li>
                    <input type="checkbox"  <%=EmailWarns[7] ? "checked" : "" %>  id="emailWarn10"  name="emailWarn10" class="box_small"/>
                    爱日租的新闻以及周期性的提醒邮件。
                  </li>
                </ul>
              </div>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <div class="bottom"></div>
  </div>
  <!--邮件 end-->
  <div id="warnset" class="box">
    <div class="top"></div>
    <div class="middle">
      <h2>短信</h2>
      <div class="note_test">
          <div id="e_mail">
            <p>
              <label >移动电话：</label>
              <input type="text"  
              class="input_b inputtxt_l" id="phoneNumber" name="phoneNumber" 
              size="30" value="<%=PhoneNum %>" maxlength="20" 
              onKeyUp="if(isNaN(this.value)) this.value=''"   readonly="readonly"/>
              <span class="tip">填写后可以接受来自爱日租的及时提醒服务！</span> </p>
          </div>
          <div class="clear"></div>
          <div id="note_yy">
            <p class="backtxt"> 手机提醒：</p>
            <ul>
              <li>
                <input type="checkbox" <%=SmsWarn[0] ? "checked" : "" %> id="smsWarn1"  name="smsWarn1" class="box_small"/>
                我有新的未读消息。
              </li>
              <li>
                <input type="checkbox" <%=SmsWarn[1] ? "checked" : "" %>  id="smsWarn2"  name="smsWarn2" class="box_small"/>
                我已经成功提交预定请求。
              </li>
              <li>
                <input type="checkbox" <%=SmsWarn[2] ? "checked" : "" %>  id="smsWarn3"  name="smsWarn3" class="box_small"/>
                我有需要处理的房间预订。
              </li>
              <li>
                <input type="checkbox" <%=SmsWarn[3] ? "checked" : "" %>  id="smsWarn4"  name="smsWarn4" class="box_small"/>
                我的预定请求或房间预定状态发生变化。
              </li>
              <li>
                <input type="checkbox" <%=SmsWarn[4] ? "checked" : "" %>  id="smsWarn5"  name="smsWarn5" class="box_small"/>
                我需要评价我的房东/租客。
              </li>

            </ul>
          </div>
      </div>
      <div class="save_btn" style="padding-top:30px">
	      	<a href="#none" style="margin:0 auto" onClick="Update();" >
	      		保 存
	      	</a>
	      	<script type="text/javascript">
	      	    function Update() {
	      	        var phoneRes = 0;
	      	        if (document.getElementById("emailWarn1").checked == true) {
	      	            phoneRes += 1;
	      	        }
	      	        if (document.getElementById("emailWarn2").checked == true) {
	      	            phoneRes += 10;
	      	        }
	      	        if (document.getElementById("emailWarn3").checked == true) {
	      	            phoneRes += 100;
	      	        }
	      	        if (document.getElementById("emailWarn4").checked == true) {
	      	            phoneRes += 1000;
	      	        }
	      	        if (document.getElementById("emailWarn5").checked == true) {
	      	            phoneRes += 10000;
	      	        }
	      	        if (document.getElementById("emailWarn6").checked == true) {
	      	            phoneRes += 100000;
	      	        }
	      	        if (document.getElementById("emailWarn9").checked == true) {
	      	            phoneRes += 1000000;
	      	        }
	      	        if (document.getElementById("emailWarn10").checked == true) {
	      	            phoneRes += 10000000;
	      	        }

	      	        var smsRes = 0;
	      	        if (document.getElementById("smsWarn1").checked == true) {
	      	            smsRes += 1;
	      	        }
	      	        if (document.getElementById("smsWarn2").checked == true) {
	      	            smsRes += 10;
	      	        }
	      	        if (document.getElementById("smsWarn3").checked == true) {
	      	            smsRes += 100;
	      	        }
	      	        if (document.getElementById("smsWarn4").checked == true) {
	      	            smsRes += 1000;
	      	        }
	      	        if (document.getElementById("smsWarn5").checked == true) {
	      	            smsRes += 10000;
	      	        }

	      	        $.post('handler/UpdateNotificationInfo.ashx',
				            { phoneRes: phoneRes,
				                smsRes: smsRes
				            },
				            function(result) {
				            })
	      	    }
	      	</script>
      </div>
    </div>
  </div>
  <div class="bottom"></div>
 </form>
</div>
	
<div id="footer">
  <p class="TxtEn">&copy; Copyright 2011 <a href="#">airizu.com 爱日租 版权所有</a>&nbsp;&nbsp;<a href="#">站内导航</a>&nbsp;&nbsp;京ICP证110553 号
	 <br/>
    <br/><img src="images/alipay.gif" width="123" height="40">&nbsp;&nbsp;
    <img src="images/tenpay.gif" width="96" height="40">&nbsp;&nbsp;    <img src="images/315.gif" width="89" height="40">    <img src="images/bluelogoair.gif"/></p>
</div>

</body>
</html>
